package com.chenjj.java.test;


class  Person{
    private static String name = "chenjj-1";

    static {
        name = "chenjj-2";
    }

    public  void setName(String n){
        name = n;
    }

    public String getName(){
        return name;
    }
}

public class StaticTester {
    public static void main(String[] args) {
        Person p = new Person();
        System.out.println(p.getName());
        p.setName("chenjj-3");
        System.out.println(p.getName());
    }
}
